package cn.jiaqiang.chatgpt.data.infrastructure.po;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description: 用户账户持久化对象, 不对外暴露, 引用 domain 层
 * User: jiaqiang
 * Date: 2024-04-02
 * Time: 16:02
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserAccountPO implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 自增id*/
    private Long id;
    /** 用户id */
    private Long userId;
    /** 用户微信唯一标识 */
    private String openid;
    /** 总额度,次数 */
    private Integer totalQuota;
    /** 剩余额度 */
    private Integer surplusQuota;
    /** 用户状态: 0可用, 1冻结 */
    private Integer status;
    /** 创建时间 */
    private Date createTime;
    /** 更新时间*/
    private Date updateTime;
}
